"use strict";
const common_vendor = require("../../../../../../../common/vendor.js");
const _sfc_main = /* @__PURE__ */ common_vendor.defineComponent({
  __name: "index",
  setup(__props) {
    const heartratechart = common_vendor.ref(null);
    const heartratetype = common_vendor.ref({
      categories: ["周一", "周二", "周三", "周四", "周五", "周六", "周日"],
      data: [100, 140, 230, 100, 130, 140, 230]
    });
    common_vendor.onMounted(() => {
      if (heartratechart.value) {
        const myChart = common_vendor.init(heartratechart.value);
        window.addEventListener("resize", () => {
          myChart.resize();
        });
        const option = {
          grid: {
            x: 35,
            // 左
            y: 50,
            // 上
            x2: 10,
            // 右
            y2: 30
            // 下
          },
          tooltip: {},
          xAxis: {
            data: heartratetype.value.categories
          },
          yAxis: {},
          series: [{
            type: "bar",
            data: heartratetype.value.data
          }]
        };
        myChart.setOption(option);
      }
    });
    return (_ctx, _cache) => {
      return {};
    };
  }
});
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c4bba73c"]]);
wx.createComponent(Component);
